﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.SmartStorPro.Domain
{
    /// <summary>
    /// 仓库表
    /// </summary>
    public class Warehouses
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int WarehouseID {  get; set; }
        /// <summary>
        /// 仓库名称
        /// </summary>
        /// 
        [MaxLength(50)]
        public string WarohouseName {  get; set; }
        /// <summary>
        /// 租赁时间
        /// </summary>
        public DateTime LeaseTime { get; set; }

        /// <summary>
        /// 仓库类型
        /// </summary>
        /// 
        [MaxLength(50)]
        public string WarehouseType { get; set; }

        /// <summary>
        /// 所属部门ID（外键）
        /// </summary>
        public int DepartmentId { get; set; }

        /// <summary>
        /// 仓库地址
        /// </summary>
        /// 
        [MaxLength(255)]
        public string WarehouseAddress { get; set; }

        /// <summary>
        /// 仓库面积（单位：平方米）
        /// </summary>
        public decimal WarehouseArea { get; set; }

        /// <summary>
        /// 联系人姓名
        /// </summary>
        /// 
        [MaxLength(50)]
        public string ContactPerson { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        /// 
        [MaxLength(50)]
        public string ContactPhone { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 是否删除(1-删除 0正常)
        /// </summary>
        public bool IsDelete { get; set; }

    }
}
